package com.example.framework2002.kind;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import com.example.framework2002.mvvm.MyModel;
import com.example.framework2002.mvvm.MyRepository;
import com.example.framework2002.mvvm.MyViewModel;
public class MyVmp implements ViewModelProvider.Factory {
    @NonNull
    @Override
    public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
        return (T) new MyViewModel(new MyRepository(new MyModel()));
    }
}
